<?php
namespace app\admin\controller;
use \think\Controller;
use \think\Session;
use \think\Db;
class User extends Common
{
	public function index(){

		if(input('userid')=='')
			$result = Db::name('user')->order('user_id')->order('user_isdel')->alias('a')->join('city b','a.city_id=b.city_id')->select();
		else
			$result = Db::name('user')->where('user_id',input('userid'))->order('user_id')->order('user_isdel')->alias('a')->join('city b','a.city_id=b.city_id')->select();
		$this->assign('userlist',$result);
		return $this->fetch();
	}

	
}